﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum Times
        {
            四小时,
            六小时,
            八小时
        }
    class DeliveryRobot : Robot
    {
        private Times timetype;
        public Times Timetype
        {
            get { return this.timetype; }
            set { this.timetype = value; }
        }
        public override void working()
        {
            Console.WriteLine("我的名字是{0}，我属于{1}，我的工作时间为{2}", base.Name, base.Type, this.timetype);
        }
        public DeliveryRobot(string name, RobotType type, Times timetype) : base(name, type)
        {
            this.timetype = timetype;
        }
    }
}
